package service.impl;

import dao.MetaverseProductDao;
import dao.impl.MetaverseProductDaoImpl;
import entity.MetaverseProduct;
import service.MetaverseProductService;

import java.util.List;

public class MetaverseProductServiceImpl implements MetaverseProductService {
    MetaverseProductDao productDao = new MetaverseProductDaoImpl();
    @Override
    public List<MetaverseProduct> selectAll() {
        return productDao.selectAll();
    }

    @Override
    public boolean insert(MetaverseProduct product) {
        return productDao.insert(product)>0;
    }

    @Override
    public int update(int flag, int id) {
        return productDao.update(flag,id);
    }
    @Override
    public int delete(int id) {
        return productDao.delete(id);
    }
}
